package com.lc.reader.data.model

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "books")
data class Book(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val title: String,
    val author: String,
    val filePath: String,
    val fileSize: Long,
    val format: String, // EPUB, PDF, TXT
    val coverPath: String? = null,
    val description: String? = null,
    var currentPage: Int = 0,
    var totalPages: Int = 0,
    var readingProgress: Float = 0f,
    var lastReadTime: Long = System.currentTimeMillis(),
    val addedTime: Long = System.currentTimeMillis(),
    val isFavorite: Boolean = false
)
